package com.bdqn.t382.lx.service.impl;

import com.bdqn.t382.lx.mapper.SysRoleMapper;
import com.bdqn.t382.lx.pojo.SysRole;
import com.bdqn.t382.lx.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysRoleServiceImpl implements SysRoleService {
    @Autowired
    SysRoleMapper sysRoleMapper;

    public void setSysRoleMapper(SysRoleMapper sysRoleMapper) {
        this.sysRoleMapper = sysRoleMapper;
    }

    @Override
    public List<SysRole> findAll(SysRole sysRole) {
        return sysRoleMapper.selectAll(sysRole);
    }

    @Override
    public int insert(SysRole sysRole) {
        return sysRoleMapper.insert(sysRole);
    }
}
